<%@ page language="java" import="java.util.*" 
import="software.Mai_main" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>软件开发交流平台</title>
<link href="../css/index.css" rel="stylesheet" type="text/css" />
</head>
  </head>
  <body>
 	<jsp:include page="head.jsp" />
 	<%
 		int Page=1,Tot_plates=0,Cur_plates=0;
 		try{
 			Page=Integer.parseInt(request.getParameter("page"));
 		}catch(Exception e){
 		}
 		Mai_main mainpage=new Mai_main();
 		mainpage.Begin(Page);
 		Cur_plates=mainpage.getCur_Plates();
 		mainpage.ReadMain();
 	%>
<div id="contianer">
<div id="left"><img src="../images/post/post_bj1.jpg" width="164" height="500" /></div>
    <div id="center">
        <div><img src="../images/index/index_rt.jpg" width="695" height="25" border="0"  usemap="#Map_Postq"/>
          <map name="Map_Postq" id="Map_Postq">
            <area shape="rect" coords="606,0,683,26" href="ft.jsp" />
          </map>
        </div>
        <div style="width:695px;">
            <div></div>
            <div></div>
        </div>
        <div style="background-image:url(../images/index/index_tj.jpg); width:695px; height:28px;">
            <table width="591" style="border:0px; margin-left:60px; padding-top:5px;font-size:12px; ">
              <tr>
                <td width="37"><%=mainpage.getMain_Numtoday() %></td>
                <td width="24">&nbsp;</td>
                <td width="37"><%=mainpage.getMain_Numyestoday() %></td>
                <td width="24">&nbsp;</td>
                <td width="37"><%=mainpage.getMain_Sumposts() %></td>
                <td width="24">&nbsp;</td>
                <td width="37"><%=mainpage.getMain_Sumuser() %></td>
                <td width="50">&nbsp;</td>
                <td width="66"><%=mainpage.getMain_Namenews() %></td>
                <td width="205">&nbsp;</td>
              </tr>
            </table>
        </div>
        
       <%
       		for(int i=0;i<Cur_plates;i++)
       		{
       			mainpage.Nextitem();
       %>
        <div id="important">
         <table id="table1">
          <tr>
            <td width="75" class="a"><a href="plates.jsp?plates=<%=mainpage.getID() %>"><%=mainpage.getNam_Plate() %></a></td>
            <td width="46">&nbsp;</td>
            <td width="52"><%=mainpage.getNum_Post() %></td>
            <td width="46">&nbsp;</td>
            <td width="69"><%=mainpage.getNum_Clicks() %></td>
          </tr>
         </table>
         <%
         	mainpage.ReadPost(mainpage.getID());
         	int Curposts=mainpage.getCur_Posts();
         	int j=0;
         	for(j=0;j<Curposts;j++)
         	{
         		mainpage.Nextpost();
         		
         %>
         <table width="639" id="table2">
          <tr>
            <td width="332" class="b"> <a  href="post.jsp?id=<%=mainpage.getPost_ID()%>"><%=mainpage.getPost_Title() %></a></td>
            <td width="95" rowspan="2" class="c"><%=mainpage.getPost_NumReply() %>/<%=mainpage.getPost_NumClicks() %></td>
            <td width="196" rowspan="2" class="c"><%=mainpage.getPost_TimLR() %></td>
          </tr>
          <tr><td class="b"> <%=mainpage.getPost_Username() %></td></tr>
        </table>
        <%} %>
        </div>
        <%
       		}
        %>
      </div>
      <div id="right"><img src="../images/post/post_bj2.jpg" width="163" height="500" /></div>
      <div style="clear:both;"></div>
</div>
 	<jsp:include page="footer.jsp" />
  </body>
</html>
